<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的任务</title>
<link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/js/common.js"></script>
<script type="text/javascript">
/*
 *_contextPath:上下文路径
 *_modulePath: 模块路径
 */
var  _contextPath="<%=path%>";
var  _modulePath=_contextPath+"/sys/";
$(document).ready(function(){
  $(".clicks").click(function(){
   _open(_modulePath+"textures_open.action?view=add");
  });
});
</script>
<script type="text/javascript">
	//删除
	$(document).ready(function(){
			var id;
			var url;
  			$(".tablelinkdelete").click(function(){
  			id = $(this).attr("idValue");
 			/* carId = $(this).attr("userId"); */
 			url =" <%= basePath%>/biz/ServiceTask_delete.action?id="+id;
 			 $(".tip").fadeIn(200);
 			 });
  
 			 $(".tiptop a").click(function(){
 			 $(".tip").fadeOut(200);
			});

  			$(".sure").click(function(){
  			$(".tip").fadeOut(100);
  					window.location.href=url;
			});

				  $(".cancel").click(function(){
				  $(".tip").fadeOut(100);
				});
		
	});
</script>

<style type="text/css">
.tablelinkdelete{color:#056dae;}
</style>
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">个人中心</a></li>
    <li><a href="#">我的任务</a></li>
    </ul>
    </div>
<div class="formbody">
    <div id="usual1" class="usual">
      <div id="tab2" class="tabson">
        
     	<form action="<%= basePath%>/biz/ServiceTask_list.action" method="post"  target="rightFrame">
    	    <!--<ul class="seachform">
    <li><label>任务名称</label><input class="scinput" name="taskName"   placeholder="请输入任务名称"/></li>
   	<li><label>字段</label><input class="scinput" name="fieldNames"   placeholder="请输入字段名称"/></li>
    	    <li><label>任务状态</label>
    	    <select id="taskState" name="taskState"   class="scinput">
			        <option value="">请选择...</option>
					<option id="taskState" value="0">未发布</option>
					<option id="taskState" value="1">已发布</option>
			    	</select></li> 
            <li><input name="" type="submit" class="scbtn" value="查询"/></li>
        </ul>-->
        </form> 
    <table class="tablelist">
    <thead>
    	<tr>
        <th>&nbsp;&nbsp;&nbsp;任务名称</th> 
        <th>&nbsp;&nbsp;&nbsp;发布人</th>
        <th>&nbsp;&nbsp;&nbsp;任务状态</th>
        <th>&nbsp;&nbsp;&nbsp;任务类型</th>
        <th>&nbsp;&nbsp;&nbsp;操作</th>
        </tr>
        
        </thead>
        <tbody>
        <s:iterator value="taskList">
        <tr>
        <td>${taskName}</td>
        <td>${issuserMap.get(taskId)}</td>
      
       	<c:choose>
	        <c:when test="${0 == editMap.get(taskId)}">
	        	<td>未填写</td>
	        </c:when>
	        <c:when test="${1 == editMap.get(taskId)}">
	        	<td>已填写</td>
	        </c:when>
        </c:choose> 
        
       <td>
         <c:choose>
	        <c:when test="${0 == taskType}">
	        	信息收集
	        </c:when>
	        <c:when test="${1 == taskType}">
	        	信息复核
	        </c:when>
        </c:choose> 
        </td>
        <td>&nbsp;
        		
        		<a href="<%= basePath%>/biz/ServiceTask_toDataEdit.action?id=${id}" class="tablelink">填写</a>
        		
       	 </td>   
        </tr> 
        </s:iterator>
        </tbody>
    </table>
  </div>  
       
	</div>
    
    <!-- 分页菜单组件--------------------------开始 -->
<%
//查询的url地址，统一写
String listActionURL = basePath+"/biz/ServiceCarApply.action";
%>
 
 
<!-- 分页菜单组件--------------------------结束 -->
<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</div>
	  <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        <div class="tipinfo">
        <span><img src="<%= basePath%>images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认删除信息 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
	

</body>

</html>
